Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rename engine metadata to template_engine #29

Merged
merged 3 commits into from
Jul 8, 2024

Conversation

ClmntBcqt
Copy link
Contributor

@ClmntBcqt ClmntBcqt commented Jun 28, 2024

#18

@ClmntBcqt ClmntBcqt requested a review from lebouquetin June 28, 2024 14:15
jssg/models.py Outdated
@@ -91,7 +91,7 @@ def convert_case(match_obj):
# extras=["fenced-code-blocks", "tables"],
# )

if "engine" in self.metadata.keys() and self.metadata["engine"] == "jinja2" :
if "template_engine" in self.metadata.keys() and self.metadata["template_engine"] == "jinja2" :
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a way to make jinja2 default template engine?

I mean, instead of something like

if metadata and engine = "jinja2":
    [...]
else:
    [...]

having something like:

if metadata and engine = "django":
    [...]
else:
    [...]

(the else being the default behavior and having jinja2 as the default behavior except if explicitly asked for django template)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it's not trivial, then just tell it to me and we merge like this.

@ClmntBcqt ClmntBcqt requested a review from lebouquetin July 8, 2024 10:05
@ClmntBcqt ClmntBcqt merged commit 44ab2ed into main Jul 8, 2024
0 of 2 checks passed
@ClmntBcqt ClmntBcqt deleted the fix__18_rename_metadata_engine_to_template_engine branch July 8, 2024 11:42
@ClmntBcqt ClmntBcqt restored the fix__18_rename_metadata_engine_to_template_engine branch July 8, 2024 12:04
ClmntBcqt added a commit that referenced this pull request Jul 8, 2024
@ClmntBcqt ClmntBcqt deleted the fix__18_rename_metadata_engine_to_template_engine branch July 8, 2024 12:11
@ClmntBcqt ClmntBcqt restored the fix__18_rename_metadata_engine_to_template_engine branch July 8, 2024 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants